package scsc.web.xzgl.building.report.data;

import java.io.Serializable;
import java.text.DecimalFormat;

public class NohBuildingReportData implements Serializable{
	private String com;
	private String buildName;
	private Double buildArea;
	private String sbuildArea;
	public Double getBuildArea() {
		return buildArea;
	}
	public void setBuildArea(Double buildArea) {
		this.buildArea = buildArea;
	}
	public String getBuildName() {
		return buildName;
	}
	public void setBuildName(String buildName) {
		this.buildName = buildName;
	}
	public String getCom() {
		return com;
	}
	public void setCom(String com) {
		this.com = com;
	}
	public NohBuildingReportData(String com,String buildName,Double buildArea){
		this.setCom( com);
		this.setBuildName( buildName);
		this.setBuildArea( buildArea);
		//this.setSbuildArea(buildArea );
	}
	public NohBuildingReportData() {
	    init();
	  }
	public void reset() {
	    init();
	  }

	  public void init() {
		  this.setBuildName("");
		  this.setCom( "");
		  this.setBuildArea(new Double(0.0));
		  this.setSbuildArea("" );
	  }
	public String getSbuildArea() {
		return sbuildArea;
	}
	public void setSbuildArea(String sbuildArea) {
		this.sbuildArea = sbuildArea;
	}
	public void setSbuildArea(Double sbuildArea) {
		DecimalFormat df=new DecimalFormat(".00");
		this.sbuildArea = df.format(sbuildArea.doubleValue()).toString();
	}
}
